package com.leo.common.base;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author liusl
 * @version 1.0
 * @date 2019/6/14 15:13
 */
public abstract class BaseEntity implements Serializable {

    @Id
    @Column(name = "`id`")
    private Long id;
    @Column(name = "create_time`")
    private Date createTime;
    @Column(name = "modify_time`")
    private Date modifyTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}
